import React, {Component} from 'react';
import { Result, Button } from 'antd';
import {BrowserRouter,Router, Route, Switch} from 'react-router-dom';
import list from '../list';
import about from '../about';
import { Layout } from 'antd';
import {withRouter,Link} from 'react-router-dom'
const { Header, Footer, Sider, Content } = Layout;

class MainPage extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    return (
      <div>
      <Layout>
        <Header>Header</Header>
        <Content>
          {this.props.children}
        </Content>
      </Layout>
      </div>
    )
  //   return (
  //     <div className='main-layout'>
  //       test
  //         {this.props.children}
  //     </div>
  // );
  }
}

export default withRouter(MainPage);
